import httpService from '@/common/config/httpService'

export default {

    async selectPageOfTest (current, size, params) {
        return await httpService.get(`/api/v1/test/selectPage/${current}/${size}`, params)
    },
    async selectOneOfTest (id, params) {
        return await httpService.get(`/api/v1/test/selectOneById/${id}`, params)
    },
    async insertOfTest (params) {
        return await httpService.post('/api/v1/test/insert', params)
    },
    async updateOfTest (params) {
        return await httpService.put('/api/v1/test/update', params)
    },
    async deleteOfTest (id, params) {
        return await httpService.delete(`/api/v1/test/delete/${id}`, params)
    },
    async deleteBatchOfTest (params) {
        return await httpService.post('/api/v1/test/deleteBatch', params)
    }

}
